package lesson5.example7;

import java.lang.reflect.Method;

public class DumpClassContent {

	public static void main(String args[]) throws Exception {
		System.setProperty("sun.jvm.hotspot.tools.jcore.filter", "lesson5.example7.DumpWrapperFilter");

		ClassLoader classLoader = DumpClassContent.class.getClassLoader();
		Method mainMethod = classLoader.loadClass("sun.jvm.hotspot.tools.jcore.ClassDump").getMethod("main",
				String[].class);

		mainMethod.invoke(null, new Object[] { new String[] { "7736" } });
	}
}
